import { Controller, Get, Query } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get('/set-prefix')
  init(
    @Query('prefix') prefix: string,
    @Query('dataPath') dataPath: string,
  ): string {
    return this.appService.init(prefix, dataPath);
  }
}
